<%@ page language="java" contentType="text/html; charset=UTF-8"  pageEncoding="UTF-8"%>
$(function() {
	$("#saveButton").click(function(){
		var cnName = $("#cnName").val();
		var content = $("#content").val();
		var idCardNumber = $("#idCardNumber").val();
		var phoneNumber = $("#phoneNumber").val();
		if(cnName!="" && content!="" && idCardNumber!="" && phoneNumber!=""){
			$.ajax({
				type:'POST',
				url:'peopleRecordAddDate.action',
				data:{cnName:cnName,content:content,idCardNumber:idCardNumber,phoneNumber:phoneNumber},
				datatype:'json',
				success:function(msg){
					if(msg.status=="200"){
						parent.closeDialog();
					}else{
						$.messager.alert("提示","登记失败");
					}
				}
			});
		}
	});
});